package com.zq.download;

/**
 * Created by zhangqiang on 17-6-21.
 */

public class FileNameGetterIMPL implements FileNameGetter {
    @Override
    public String getSaveFileName(String fileName) {

        return fileName;
    }

    @Override
    public String getSaveFileNameWhenExists(String fileName) {

        return fileName + "(0)";
    }

    @Override
    public String getPartSaveFileName(int partIndex, String fileName) {

        return fileName+ "_" + partIndex;
    }
}
